//
//  PlayView.h
//  JXPlayer
//
//  Created by bijan on 2016/12/13.
//  Copyright © 2016年 bijan. All rights reserved.
//1111

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
@interface JXPlayer : NSObject

@property(nonatomic,strong) AVPlayer *player;
@property(nonatomic,strong) AVPlayerItem *playerItem;
@property(nonatomic,strong) UIView *playerView;
@property(nonatomic,strong) AVAsset *asset;
@property(nonatomic,strong) AVPlayerLayer *playerLayer;

/**
 用于创建播放器

 @param urlStr 你要播放的地址
 @param playView 承载播放器的View
 */
- (void)playWithUrlStr:(NSString*)urlStr playView:(UIView*)playView;


/**
 单例方法
 */
+ (instancetype)sharedPlayer;


- (void)pause;
- (void)play;
- (void)close;

@end
